﻿/*Author：Lary Pan(itolmqj123@gmail.com)
 *Date  ：2016/7/25
 *Tips  ：BaseLogic Manager
 * */
public class BaseLogicManager<T> : ISingleton<T>, IManager where T : new()
{
    public virtual void Init() 
    {
        EventManager.Instance.AddListener(CEvent.OpenUI, OpenUI);
        EventManager.Instance.AddListener(CEvent.CloseUI, CloseUI);
    }

    public virtual void DoDestroy() 
    {
        EventManager.Instance.RemoveLisener(CEvent.OpenUI, OpenUI);
        EventManager.Instance.RemoveLisener(CEvent.CloseUI, CloseUI);
    }

    public virtual void OpenUI(params object[] args) { }

    public virtual void CloseUI(params object[] args) { }

}
